home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20010921-20020314 / 000365_fdc@columbia.edu_Mon Feb 11 13:18:10 EST 2002.msg < prev    next >
Text File  |  2020-01-01  |  3KB  |  76 lines

  1. Article: 13209 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!news.columbia.edu!news-not-for-mail
  3. From: fdc@columbia.edu (Frank da Cruz)
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Re: if syntax change
  6. Date: 11 Feb 2002 13:18:01 -0500
  7. Organization: Columbia University
  8. Lines: 59
  9. Message-ID: <a491sp$85l$1@watsol.cc.columbia.edu>
  10. References: <26dc2188.0202081336.79eb8459@posting.google.com> <a41het$1na$1@watsol.cc.columbia.edu> <26dc2188.0202110943.62504aec@posting.google.com>
  11. NNTP-Posting-Host: watsol.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 1013451483 18215 128.59.39.139 (11 Feb 2002 18:18:03 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 11 Feb 2002 18:18:03 GMT
  15. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13209
  16.  
  17. In article <26dc2188.0202110943.62504aec@posting.google.com>,
  18. David L. Harfst <harfst@cms-stl.com> wrote:
  19. : fdc@columbia.edu (Frank da Cruz) wrote
  20. : in message news:<a41het$1na$1@watsol.cc.columbia.edu>...
  21. : > In article <26dc2188.0202081336.79eb8459@posting.google.com>,
  22. : > David L. Harfst <harfst@cms-stl.com> wrote:
  23. : > : I have the following block of code which runs fine on 
  24. : > : C-Kermit 6.0.192 on HP-UX 10.20:
  25. : > : 
  26. : > :   xif EQUAL \$(SPEED) 14400 {
  27. : > :     # +MS=10 - Limits the connection speed to 14.4 KBaud
  28. : > :     set modem command Init-string AT&F0+MS=10M0X4V1S95=41\{13}
  29. : > :   }
  30. : > : 
  31. : > : I'm trying to port this script to Linux, on which I'm
  32. : > : running C-Kermit 8.0.200 and RedHat 7.2.
  33. : > : 
  34. : > : ?Invalid:   xif EQUAL \$(SPEED) 14400 {,   set modem command
  35. : > : Init-string AT&F0+MS=10M0X4V1S95=41\{13}
  36. : > :
  37. : > I think the problem is that the environment variable SPEED is not
  38. : > defined.  Thus a field is missing.  You could do it this way:
  39. : > 
  40. : >   xif EQUAL "\$(SPEED)" "14400" {
  41. : >     # +MS=10 - Limits the connection speed to 14.4 KBaud
  42. : >     set modem command Init-string AT&F0+MS=10M0X4V1S95=41\{13}
  43. : >   }
  44. :
  45. : Nice thought.  Unfortunetly that's not the case...
  46. I checked it in 7.0.196, 8.0.200, and 8.0.201.  The results are all
  47. identical:
  48.  
  49.   $ echo $SPEED
  50.  
  51.   $ kermit
  52.   (/p/kd/fdc/tmp/) C-Kermit>tak x
  53.    \v(m_init) = ATQ0X4&A3&N0&Y3S14=0\{13}
  54.   (/p/kd/fdc/tmp/) C-Kermit>q
  55.   $ export SPEED=14400
  56.   $ echo $SPEED
  57.   14400
  58.   $ kermit
  59.   (/p/kd/fdc/tmp/) C-Kermit>tak x
  60.    \v(m_init) = AT&F0+MS=10M0X4V1S95=41\{13}
  61.   (/p/kd/fdc/tmp/) C-Kermit>
  62.  
  63. where x is:
  64.  
  65.   set modem type usr
  66.   xif EQUAL "\$(SPEED)" "14400" {
  67.     # +MS=10 - Limits the connection speed to 14.4 KBaud
  68.     set modem command Init-string AT&F0+MS=10M0X4V1S95=41\{13}
  69.   }
  70.   show var m_init
  71.  
  72. No complaints from any Kermit version 7.0 or greater.
  73.  
  74. - Frank
  75.